#include "Nick.h"
#include "TextParser.h"

CNickData::CNickData(const char *szFileName)
{
    CTextParser NickFile( szFileName, '#');
    NickFile.FindRecordHead();
    NickFile.GotoNextLine();
    short i;
    for (i = 0; i < SKILL_KIND; ++i)
        NickFile.ReadString( szSkillNames[i]);

    NickFile.GotoNextLine();
    for (i = 0; i < NICK_LVL; ++i)
        NickFile.ReadString( szLvlNicks[i]);

    NickFile.GotoNextLine();
    for (i = 0; i < NICK_LVL; ++i)
        NickFile.ReadInteger( &nNickExps[i]);
}
